<%@ page import="com.oval.util.JspHelper" %>
<%@ page import="com.oval.foundation.DefaultParams" %>
<%@ page contentType = "text/html;charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/custom.tld" prefix="custom" %>
<%
  String action = (String)request.getParameter("todo");
  //System.out.println("action "+action);
  if(action != null && action.equals("enable"))
  {
    com.oval.foundation.bo.OvalEAIAPI.eai_enable = true;
  }
  if(action != null && action.equals("disable"))
  {
    com.oval.foundation.bo.OvalEAIAPI.eai_enable = false;
  }
  boolean b = com.oval.foundation.bo.OvalEAIAPI.eai_enable;
  
  String dbtype=DefaultParams.findParam("DBType");
%>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="css/chinese/csscontent.css" type="text/css">
<script language="JavaScript" src="inc/LeftBar.js">
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0">
  <tr> 
    <td height="18" class="deepblue2">User: Henry</td>
  </tr>
  <tr> 
    <td class="left-blue1" height="40" > 
      <table width="100%" cellspacing="0" class="td_right" cellpadding="0" border="0">
        <tr> 
          <td class="left-blue1"> <br>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr class="blue1"> 
    <td class="left-blue1" height="30">
      <a onclick="parent.location.href='Homepage.htm';"><custom:button type="1" label="L_Logout" imgsrc="logout.gif" border="0" style="width:60"/></a>
    </td>
  </tr>
  <tr> 
    <td class="deeepblue" height="20">
      <img src="images/chinese/arrow.gif">
      <font color="#000000">
        Func. Menu
      </font>
    </td>
  </tr>
  <tr> 
    <td valign="top" class="gray1"> 
      <table width="100%" cellspacing="0" cellpadding="0" border="0">
        <tr height="4"> 
          <td></td>
        </tr>
      </table>
      <table height=170 cellspacing=0 cellpadding=0 width=100% border=0>
        <tbody> 
        <tr valign=top> 
          <td height="100" class="gray-bg"> 
            <script>
              var t;

              t=outlookbar.addtitle('WorkFlow Mgmt')
              outlookbar.additem('Job List',t,'consoleContent.jsp?nocache=&contentType=Job')
              outlookbar.additem('JobUnit List',t,'consoleContent.jsp?nocache=&contentType=JobUnit')
              outlookbar.additem('Condition List ',t,'consoleContent.jsp?nocache=&contentType=Condition')
              outlookbar.additem('Component List',t,'consoleContent.jsp?nocache=&contentType=Component')
              outlookbar.additem('Job Test',t,'consoleContent.jsp?nocache=&contentType=JobTest')

              t=outlookbar.addtitle('V-Table Mgmt')
              outlookbar.additem('VTable List ',t,'consoleContent.jsp?nocache=&contentType=VirtualTable')
              outlookbar.additem('MasterTable List',t,'consoleContent.jsp?nocache=&contentType=MasterTable')
              outlookbar.additem('VTable QL Test',t,'consoleContent.jsp?nocache=&contentType=VirtualTableTest')
			        outlookbar.additem('VTable Report Test',t,'reportList.jsp')

              t=outlookbar.addtitle('PageFlow Mgmt')
              outlookbar.additem('Page List',t,'consoleContent.jsp?nocache=&contentType=PageFlow')
              
              t=outlookbar.addtitle('Other Mgmt')
              outlookbar.additem('Label Summary',t,'label/labelSummary.jsp?nocache=&module=COM')
              outlookbar.additem('Message Summary',t,'message/MessageSummary.jsp')
              outlookbar.additem('Table Summary',t,'table/tableSummary.jsp')
              outlookbar.additem('Column Summary',t,'column/columnSummary.jsp?nocache=&module=UPM')
              outlookbar.additem('SQL Test',t,'consoleContent.jsp?nocache=&contentType=TestSQL')
              outlookbar.opentitle=0;
              
              t=outlookbar.addtitle('Tools')
              outlookbar.additem('Logger Set',t,'inc/SetCategoryListFrm.jsp')
	          outlookbar.additem('DB Manager',t,'../db/dbm/DBManagerSummary.jsp?dbtype=<%=dbtype%>')
              outlookbar.additem('Upload Tools',t,'showchanges.jsp?actionname=check')
              outlookbar.additem('Schedule Set',t,'inc/SetSchedule.jsp')
              outlookbar.additem('LiteOrgId Set',t,'SetLiteOrgId.jsp')
              outlookbar.additem('Unlock jobs',t,'JobLockMgmt.jsp')              
	          outlookbar.additem('ScheduledTask',t,'ManageScheduledTask.jsp')
	            
	          outlookbar.show()
            
            </script>
          </td>
        </tr>
        </tbody> 
      </table>
       <table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
        <tr> 
          <td  class="gray-bg"> 
            <form name="form1" method="post" action="">
              <table width="100%" border="0">
        				<tr> 
                  <td class="deepblue2">Limit Debug Level</td>
                </tr>
                <tr> 
                  <td class="left-blue1">
                    <input type="image" border="0" name="imageField" src="images/chinese/bt-list.gif" width="57" height="18" onClick="window.open('SetLevel.jsp','','width=300,height=100')" >
                  </td>
                </tr>
               
   <% if(b) {%>
                <tr> 
                  <td class="deepblue2">Disable EAI</td>
                </tr>
                <tr> 
                  <td class="left-blue1">
                    <a href="consoleLeft.jsp?todo=disable">
                      <img src="images/chinese/bt-list.gif" border="0" width="57" height="18">
                    </a>
                  </td>
                </tr>
                <% } else { %>
                <tr> 
                  <td class="deepblue2">Enable EAI</td>
                </tr>
                <tr> 
                  <td class="left-blue1">
                    <a href="consoleLeft.jsp?todo=enable">
                      <img src="images/chinese/bt-list.gif" border="0" width="57" height="18">
                    </a>
                  </td>
                </tr>
                <% } %>
              </table>
            </form>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</body>
</html>


